﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace WFA_BANHANG.HeThong.DynamicMenu
{
    class CreateDynamicMenuDTO
    {
        #region(Global Variable)
        private string _menuID;
        private string _menuName;
        private string _menuParent;
        private string _projectName;
        private string _fileName;
        private string _parameterName;
        private string _parameterValue;
        private Byte[] _iconMenu;
        #endregion(Global Variable)

        #region(Properies)
        public string MenuID
        {
            get { return _menuID; }
            set { _menuID = value; }
        }
        public string MenuName
        {
            get { return _menuName; }
            set { _menuName = value; }
        }
        public string MenuParent
        {
            get { return _menuParent; }
            set { _menuParent = value; }
        }
        public string ProjectName
        {
            get { return _projectName; }
            set { _projectName = value; }
        }
        public string FileName
        {
            get { return _fileName; }
            set { _fileName = value; }
        }
        public string ParameterName
        {
            get { return _parameterName; }
            set { _parameterName = value; }
        }
        public string ParameterValue
        {
            get { return _parameterValue; }
            set { _parameterValue = value; }
        }
        public Byte[] IconMenu
        {
            get { return _iconMenu; }
            set { _iconMenu = value; }
        }
        #endregion(Properties)

        public CreateDynamicMenuDTO()
        {
            _menuID = null;
            _menuName = null;
            _menuParent = null;
            _projectName = null;
            _fileName = null;
            _parameterName = null;
            _parameterValue = null;
            _iconMenu = null;
        }

        public CreateDynamicMenuDTO(string[] valueParameter, Byte[] icon) { 
        
          _menuID = valueParameter[0];
          _menuName = valueParameter[1];
          _menuParent = valueParameter[2];
          _projectName = valueParameter[3];
          _fileName = valueParameter[4];
          _parameterName = valueParameter[5];
          _parameterValue = valueParameter[6];
          _iconMenu = icon;
            
        }
    }//the end class
}//the end namespace
